//
//  BaseCommondNaviController.m
//  LoanMoney
//
//  Created by gynjobs on 2017/8/28.
//  Copyright © 2017年 cangming. All rights reserved.
//

#import "BaseCommondNaviController.h"

@interface BaseCommondNaviController ()

@end

@implementation BaseCommondNaviController
- (void)viewDidLoad {
    [super viewDidLoad];
    [self InitTheNavigationBar];
    // Do any additional setup after loading the view.
}
#pragma mark ---构建UI---
- (void)InitTheNavigationBar{
    //左右
    UINavigationBar *naBar = [UINavigationBar appearance];
    naBar.barTintColor = NavBarColor;
    [naBar setTitleTextAttributes:@{NSForegroundColorAttributeName:[UIColor whiteColor],NSFontAttributeName:[UIFont systemFontOfSize:NAvBarTextFont]}];
    [naBar setBackgroundImage:[UIImage imageWithColor:NavBarColor size:CGSizeMake(WINSIZEWIDTH, NAVAGATIONBARHIGHT)]
               forBarPosition:UIBarPositionAny
                   barMetrics:UIBarMetricsDefault];
    [naBar setShadowImage:[UIImage new]];
}
- (void)setNavigationBarViewBackColor:(UIColor *)barColor andTitleColor:(UIColor *)titleColor Font:(UIFont *)titleFont{
    UINavigationBar *naBar = self.navigationBar;
    naBar.barTintColor = barColor;
    [naBar setTitleTextAttributes:@{NSBackgroundColorAttributeName:barColor,NSFontAttributeName:titleFont}];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}



@end
